<{include file="app/header.tpl"}>


<h3>调查问卷：<{$survey.title}></h3>
<p>描述:<{$survey.summary}></p>
<p>起始时间: <{"Y-m-d H:i:s"|@date:$survey.startTime}></p>
<p>起始时间: <{"Y-m-d H:i:s"|@date:$survey.endTime}></p>

<hr/>


<{foreach from=$survey.questions item="ques"}>
    <p><{$ques.question}></p>

    <{if $ques.type == 1}>
        <{foreach from=$ques.options item="op"}>
            <p>
                <{if $op.selected}>
                    (√)<{$op.answer}>
                <{else}>
                    <{$op.answer}>
                <{/if}>
            </p>
        <{/foreach}>
    <{elseif $ques.type == 2}>
        <{foreach from=$ques.options item="op"}>
            <p>
                <{if $op.selected}>
                    (√)<{$op.answer}>
                <{else}>
                    <{$op.answer}>
                <{/if}>
            </p>
        <{/foreach}>
    <{else}>
        <p><{$ques.textContent}></p>
    <{/if}>

    <hr/>
<{/foreach}>

<{include file="app/footer.tpl"}>
